﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="../../../include/admincontent.jsp" %>
<div id="location">当前位置：首页 > 招聘实施 > 中专校园招聘 > 初审</div>
<div id="Content">
    <div class="btnbar">
        <button type="button" class="view" id="zzuser_view">查看毕业生信息</button>
        <button type="button" class="save" id="csokbtn">通过初审</button>
        <button type="button" class="save" id="csnobtn">不通过初审</button>
        <button type="button" class="card" id="zzpublishresult" fid="${fid}" deptcode="${deptcode}">公布/屏蔽结果</button>
        <button type="button" class="list" id="do_zznext">进入下一步</button>
        <button type="button" class="save" id="resume_output">导出</button>
        <button type="button" class="save" id="resume_input">导入</button>
       <%-- <button type="button" class="back" onclick="javascript:history.go(-1);">返 回</button>--%>
        <button type="button" class="list" id="do_tjgw" pid="${pid}" fid="${fid}" deptcode="${deptcode}">推荐其他岗位</button>

    </div>

    <!-- 筛选条件 -->
    <div id="searchbox">
        <form id="sform">
            <input type="hidden" name="pid" value="${pid}"/>
            <input type="hidden" name="path" value="${fid}"/>
            <input type="hidden" name="deptcode" value="${deptcode}"/>
            <%--<table class="treeTable searchform">
                <thead>
                <tr>
                    <td width="60">学校名称：</td>
                    <td width="200">
                        <div><select name="adduid">${school}</select></div>
                    </td>
                    <td width="40">姓名：</td>
                    <td width="80">
                        <div><input type="text" name="name"/></div>
                    </td>
                    <td width="60">身份证号：</td>
                    <td width="120">
                        <div><input type="text" name="code"/></div>
                    </td>
                    <td width="60">所学专业：</td>
                    <td width="120">
                        <div><input type="text" name="major"/></div>
                    </td>
                    <td width="40">状态：</td>
                    <td width="90">
                        <div>
                            <select name="state">
                                <option value="-1">全部</option>
                                <option value="1">审核中</option>
                                <option value="2">已通过</option>
                                <option value="3">未通过</option>
                            </select>
                        </div>
                    </td>
                    <td width="30">
                        <button id="searchbtn" type="button" class="search"></button>
                    </td>
                    <td></td>
                </tr>
                </thead>
            </table>--%>
            <table class="treeTable searchform">
                <thead>
                <tr>
                    <td>毕业院校:</td>
                    <td>
                        <div>
                            <select name="adduid">
                                ${school}
                                <option value="">全部</option>
                            </select>
                        </div>
                    </td>
                    <td>身份证号:</td>
                    <td>
                        <div><input type="text" name="code"/></div>
                    </td>

                    <td>姓名:</td>
                    <td colspan="3">
                        <div>
                            <input type="text" name="name"/>
                        </div>
                    </td>
                    <td>所学专业:</td>
                    <td colspan="3">
                        <div>
                            <input type="text" name="major"/>
                        </div>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>毕业年份:</td>
                    <td>
                        <div><input type="text" name="graduationyear"/></div>
                    </td>
                    <td>联系电话:</td>
                    <td>
                        <div>
                            <input type="text" name="tel"/>
                        </div>
                    </td>
                    <td>岗位组:</td>
                    <td colspan="3">
                        <div><select name="job">
                            <option value="">不限</option>
                            <c:forEach var="projectinfojobs" items="${jobs}" varStatus="item" >
                                <c:choose>
                                    <c:when test="${projectinfojobs!=null}">
                                        <option value="${projectinfojobs.jobname}">${projectinfojobs.jobname}</option>
                                    </c:when>

                                </c:choose>
                            </c:forEach>
                        </select>
                        </div>
                    </td>
                    <td>初审状态:</td>
                    <td colspan="3">
                        <div>
                            <select name="state">
                                    <option value="-1">全部</option>
                                    <option value="1">审核中</option>
                                    <option value="2">已通过</option>
                                    <option value="3">未通过</option>
                            </select>
                        </div>
                    </td>
                    <td></td>
                </tr>
                <tr class="moretj">
                    <td width="80">公布结果:</td>
                    <td width="150">
                        <div>
                            <select name="op1">
                                <option value="">全部</option>
                                <option value="未公布">未公布</option>
                                <option value="已公布">已公布</option>
                            </select>
                        </div>
                    </td>
                    <td width="80">性别:</td>
                    <td width="150">
                        <div>
                            <select name="gender">
                                <option value="">不限</option>
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </td>
                    <td width="70" style="text-align:right;">年龄:</td>
                    <td width="60">
                        <div><input type="text" name="agefrom"/></div>
                    </td>
                    <td width="16" style="text-align:center;">至</td>
                    <td width="60">
                        <div><input type="text" name="ageto"/></div>
                    </td>
                    <td width="70" style="text-align:right;">身高:</td>
                    <td width="50">
                        <div><input type="text" name="heightfrom"/></div>
                    </td>
                    <td width="36" style="text-align:center;">至</td>
                    <td width="50">
                        <div><input type="text" name="heightto"/></div>
                    </td>
                    <td></td>
                </tr>
                <%--<tr class="moretj">
                    <td>性别:</td>
                    <td>
                        <div>
                            <select name="gender">
                                <option value="">不限</option>
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </td>

                    <td>户口所在地:</td>
                    <td>
                        <div><input type="text" name="hukouaddress"/></div>
                    </td>
                    <td>现居住地:</td>
                    <td colspan="3">
                        <div><input type="text" name="nowaddress"/></div>
                    </td>
                    <td>筛选状态:</td>
                    <td colspan="3">
                        <div>
                            <select name="fqstate">
                                <option value="">全部</option>
                                <option value="未放弃" selected>未放弃</option>
                                <option value="已放弃">已放弃</option>
                            </select>
                        </div>
                    </td>
                    <td></td>
                </tr>--%>
                <tr>
                    <td colspan="12">
                        <div style="padding-top: 8px;"> <button id="searchbtn" type="button" class="search"></button>
                            <button id="clearbtn" type="reset" class="del" title="清除" style="flex: 1;margin-left: 5px;"></button>
                        </div>
                    </td>
                    <td>
                        <button id="showhidebtn" type="button" class="moretjbtn0" onclick="moreparam()"
                                title="高级查询"></button>
                    </td>
                </tr>
                </thead>
            </table>
        </form>
    </div>
    <form id="thisform1" method="post" action="${path}/Do/ZZReview/RAction">
        <input type="hidden" name="fid" value="${fid}"/>
        <input type="hidden" name="deptcode" value="${deptcode}"/>
        <input type="hidden" name="state" id="stateip"/>
        <button type="submit" id="okbtn" style="display:none;"></button>
        <div id="csusers"></div>
    </form>
    <div id="page_top" class="page"></div>
    <table class="treeTable" id="tablelist">
        <thead>
        <tr>
            <td width="20"><input type="checkbox" class="allcheckbox" title="选择全部/取消全选"/></td>
            <td width="35">序号</td>
            <td width="60">姓名</td>
            <td width="40">性别</td>
            <td width="120">身份证号</td>
            <td width="120">所学专业</td>
            <td width="90">毕业时间</td>
            <td width="60">在校表现</td>
            <td width="60">有无挂科</td>
            <td width="40">身高</td>
            <td width="60">岗位组</td>
            <td width="80">状态</td>
            <td width="50">公布结果</td>
            <td width="50"></td>
        </tr>
        </thead>
        <tbody id="result"></tbody>
    </table>

    <div id="page_bottom" class="page"></div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        getList();
        $('#searchbtn').click(function () {
            getList();
        });

        $('#csokbtn').click(function () {
            if ($('#csusers input').length > 0) {
                $('#stateip').val(2);
                $('#okbtn').click();
            } else {
                parent.layer.alert('请选择要执行此操作的数据');
            }
        });
        $('#csnobtn').click(function () {
            if ($('#csusers input').length > 0) {
                $('#stateip').val(3);
                $('#okbtn').click();
            } else {
                parent.layer.alert('请选择要执行此操作的数据');
            }
        });

        //全选当页
        $(document).delegate('.allcheckbox', 'click', function () {
            $('#csusers').html('');
            $(this).parent().parent().parent().next().find('input[type=checkbox]').each(function () {
                if ($(this).is(":checked")) {
                    $('#csusers').append('<input type="hidden" name="uid" value="' + $(this).val() + '"/>');
                }
            });
        });
        //选择一条
        $(document).delegate('#tablelist tbody tr', 'click', function () {
            var ck = $(this).find('input[type=checkbox]');
            if (ck.is(":checked")) {
                $('#csusers').append('<input type="hidden" name="uid" value="' + ck.val() + '"/>');
            } else {
                $('#csusers input').each(function () {
                    if ($(this).val() == ck.val())
                        $(this).remove();
                });
            }
        });

        $('#do_zznext').click(function () {
            parent.layer.confirm('只有初审通过的人员才能执行此操作。<br>确定要执行吗？', {
                btn: ['是', '否']
            }, function () {
               // DelInfo('/Do/ZZReview/NextAction?pid=${pid}&fid=${fid}&deptcode=${deptcode}');
                toNextFlow('/Do/ZZReview/NextAction?pid=${pid}&fid=${fid}&deptcode=${deptcode}','${fid}');
                parent.layer.closeAll();
            }, function () {
                parent.layer.closeAll();
            });

        });


    });

    function getList() {
        $('.page').myPagination({
            cssStyle: "pagination",
            ajax: {
                on: true,
                url: '${path}/Do/ZZReview/getusers?flowid=${fid}',
                param: $('#sform').serialize(),
                dataType: 'html',
                callback: function (data) {
                    $('#result').html(data);
                    $('#result select').each(function () {
                        $(this).val($(this).next().val());
                    });
                    parent.changeFrameHeight();
                    $('#result a').click(function () {
                        event.stopPropagation();
                    });
                }
            }
        });
    }

    $(function () {

        $('#resume_output').click(function () {
            openpLayer('请选择要导出的字段', '/ExcelDown/DownDoResume?pid=${pid}&fid=${fid}&deptcode=${deptcode}&'+$('#sform').serialize(), '60%', '70%');
        });
        $('#resume_input').click(function () {
            openpLayer('Excel数据导入', '/ExcelImport/ImportExcelPage?pid=${pid}&fid=${fid}&deptcode=${deptcode}&'+$('#sform').serialize(), '60%', '500px');
        });
    });
</script>
</body>
</html>